﻿using System.Data.Linq.Mapping;

namespace Southern.Models.Southern.Partials
{
    public class SysRole
    {
        private string _Description;
        private int _Id;
        private string _Name;
        private short _Status;

        [Column(Storage = "_Id", DbType = "Int NOT NULL")]
        public int Id
        {
            get { return _Id; }
            set
            {
                if ((_Id != value))
                {
                    _Id = value;
                }
            }
        }

        [Column(Storage = "_Name", DbType = "NVarChar(100) NOT NULL", CanBeNull = false)]
        public string Name
        {
            get { return _Name; }
            set
            {
                if ((_Name != value))
                {
                    _Name = value;
                }
            }
        }

        [Column(Storage = "_Description", DbType = "NVarChar(200)")]
        public string Description
        {
            get { return _Description; }
            set
            {
                if ((_Description != value))
                {
                    _Description = value;
                }
            }
        }

        [Column(Storage = "_Status", DbType = "SmallInt NOT NULL")]
        public short Status
        {
            get { return _Status; }
            set
            {
                if ((_Status != value))
                {
                    _Status = value;
                }
            }
        }
    }
}